/**
 * boolean
 * number
 * string
 * array
 * tuple
 * enum
 * any
 * null
 * undefined
 * void
 * never
 */

 var flag:boolean=true;
 var num:number=1;
 var str:string='hello';
 var arrBool:boolean[]=[true,false];
 var arrNum:Array<number>=[1,2];
 var arrStr:string[]=['1'];
 var arrAny:any[]=[1,'str',false];

 //元组
let arr:[string,number,boolean]=["tsc",1,true];

//枚举
enum Flag{success=1,error=-1};
var f:Flag=Flag.success;
console.log(f);

//任意
var any:any='str';
any=2;
console.log(any);

//never 类型
var neve:never=(function(){
    throw new Error("erroe");
})()
